// 设置组件的可调用方法
import anvilDialogMethods from './anvilDialog/anvilDialogMethods';
import anvilTableMethods from './anvilTable/anvilTableMethods';
import customBtnMethods from './customButton/customBtnMethods';
import paragraphMethods from './paragraph/paragraphMethods';
import anvilDrawerMethods from './anvilDrawer/anvilDrawerMethods';
import dynamicTreeMethods from './dynamicTree/dynamicTreeMethods';
import uploadDialogMethods from './uploadDialog/uploadDialogMethods';
import anvilCascaderMethods from './anvilCascader/anvilCascaderMethods';
import treeSelectMethods from './treeSelect/treeSelectMethods';
import anvilVforTableMethods from './anvilVforTable/anvilVforTableMethods';
import baseChartMethods from './baseChart/baseChartMethods';
import customChartMethods from './customChart/customChartMethods';
import anvilIframeMethods from './anvilIframe/anvilIframeMethods';
import pdfViewerMethods from './pdfViewer/pdfViewerMethods';
import { getLocalCompMethods } from '@/components/Code';

const input = {
  type: 'input',
  methods: [
    {
      label: '清空组件值',
      value: 'clear'
    }
  ]
};

const number = {
  type: 'number',
  methods: [
    {
      label: '清空组件值',
      value: 'clear'
    }
  ]
};

const textarea = {
  type: 'textarea',
  methods: [
    {
      label: '清空组件值',
      value: 'clear'
    }
  ]
};

const select = {
  type: 'select',
  methods: [
    {
      label: '加载异步数据',
      value: 'asyncLoad'
    },
    {
      label: '过滤数据',
      value: 'dataFilter'
    }
  ]
};

const radio = {
  type: 'select',
  methods: [
    {
      label: '加载异步数据',
      value: 'asyncLoad'
    },
    {
      label: '过滤数据',
      value: 'dataFilter'
    }
  ]
};

const checkbox = {
  type: 'checkbox',
  methods: [
    {
      label: '加载异步数据',
      value: 'asyncLoad'
    },
    {
      label: '过滤数据',
      value: 'dataFilter'
    }
  ]
};

export default [
  anvilDialogMethods,
  anvilTableMethods,
  customBtnMethods,
  paragraphMethods,
  anvilDrawerMethods,
  dynamicTreeMethods,
  uploadDialogMethods,
  anvilCascaderMethods,
  treeSelectMethods,
  anvilVforTableMethods,
  baseChartMethods,
  customChartMethods,
  anvilIframeMethods,
  pdfViewerMethods,
  select,
  radio,
  checkbox,
  input,
  number,
  ...getLocalCompMethods
];
